package org.fengling.readingplatform.novel.service.impl;

import org.fengling.readingplatform.novel.mapper.CategoryMapper;
import org.fengling.readingplatform.model.entity.novel.Category;
import org.fengling.readingplatform.novel.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    // 查找所有一级分类的方法
    @Override
    public List<Category> selectOneCategory() {
        return categoryMapper.selectOneCategory();
    }
}
